package com.zg.nacos.service;

import com.zg.common.core.service.IPageBaseService;
import com.zg.nacos.domain.entity.MicroNacos;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/28 10:12
 */

public interface MicroNacosService extends IPageBaseService<MicroNacos> {

    /**
     * 获取需要自动启动的
     *
     * @return
     */
    List<MicroNacos> listAutoPre();

    /**
     * 根据namespace和serviceCodech
     *
     * @param namespace
     * @param serviceCode
     * @return
     */
    MicroNacos getByNamespaceCode(String namespace, String serviceCode);

    /**
     * 启动
     *
     * @param id
     */
    void start(Long id);
}
